import { Component, OnInit } from '@angular/core';
import { Router } from "@angular/router";
import { DomSanitizer, SafeResourceUrl } from '@angular/platform-browser';

declare var $:any;
@Component({
	selector: 'app-single-page',
	templateUrl: './single-page.component.html'
})
export class SinglePageComponent implements OnInit{
	videoUrl: SafeResourceUrl;
	url = 'http://localhost:8085/api/loginServer/apiLogin.html?loginName=admin&password=uu123456&autoLogin=/alertLog/parkCarUI.html';
	constructor(private router: Router,private sanitizer: DomSanitizer) {
	    this.url = common.getCookie('single-page');
	    common.clearCookie('single-page');
	    this.videoUrl = this.sanitizer.bypassSecurityTrustResourceUrl(this.url);
	}
	ngOnInit() {
	}
}
